<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/jquery_lib/jquery-1.8.2.min.js"></script>
<title>成都蓝源进销存系统(教学版)-产品列表页</title>
</head>
	<script>
			$(function(){
				$("#hiddenIframe").load(function(){
					var window = this.contentWindow;
					var jsonString = window.document.body.innerHTML;
					if(jsonString){
						var json = eval("("+jsonString+")");
						console.debug(json);
						if(json.success){
							$("#search").submit();
						}
					}
				});
			});
	</script>
<body>

<iframe style="display:none;" name="hiddenIframe" id="hiddenIframe">
	
</iframe>

<div class="content-right">
<div class="content-r-pic"><div style="margin:8px auto auto 12px;"><img src="/images/ping.gif" width="138" height="17" /></div></div>
<div class="content-text">
<div class="square-o-top">
<table width="100%"  border="0" cellpadding="0" cellspacing="0" style="font-size:14px; font-weight:bold; font-family:"黑体";">
   <tr><td height="24">&nbsp;</td></tr>
  <tr>
  <s:form action="bill_list" method="post" id="search" theme="simple">
    <td width="60" height="30">关键字:</td>
    <s:hidden name="query.currentPage"/>
    <td width="133"><s:textfield name="query.keyWords" size="15"/></td>
    <td width="60">最低工资:</td>
    <td width="142"><s:textfield name="query.minSalary" size="15"/></td>
    <td width="60">最高工资:</td>
    <td width="149"><s:textfield name="query.maxSalary" size="15"/></td>
	<td width="85"><a href="/bill_list"><img src="/images/can_b_01.gif" border="0"/></a></td>
  </s:form>
	<td width="136"><a href="bill_input"><img src="/images/can_b_02.gif" border="0"/></a></td>
  </tr>
</table>
</div><!--"square-o-top"end-->
<div class="square-order">
  <table width="100%"  border="1" cellpadding="0" cellspacing="0">
    <tr align="center" style="background:url(/images/table_bg.gif) repeat-x;">
      <td width="13%" height="30">订单编号</td>
      <td width="15%">品牌</td>
      <td width="14%">总价</td>
      <td width="12%">状态</td>
      <td width="16%">操作</td>
    </tr>
    <s:iterator value="#bills" status="status">
    <tr align="center" bgcolor="#FFFFFF">
	      <td><s:property value="sn"/></td>
	      <td><s:property value="supplier.name"/></td>
	      <td><s:property value="amount"/></td>
	      <td>
	      	<s:if test="status==0">
	      		 未审核
	      	</s:if>
	      	<s:else>
	      		已审核
	      	</s:else>
	      </td>
	      <td>
	      	<img src="/images/icon_3.gif" /> 
	      	<span style="line-height:12px; text-align:center;"><a href="bill_edit?bill.id=<s:property value='id'/>">编辑</a></span> 
	      	<img src="/images/icon_04.gif" /> 
	      	<span style="line-height:12px; text-align:center;"><a href="/bill_delete?bill.id=<s:property value="id"/>" target="hiddenIframe" >删除</a></span>
	      </td>
    </tr>
    </s:iterator>
   
  </table>
</div><!--"square-order"end-->
</div><!--"content-text"end-->
<div class="content-bbg">
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="3%">&nbsp;</td>
    <td width="10%">共<s:property value="#resPage.rowCount"/>条记录</td>
    <td width="9%">当前第<span style="color:red;"><s:property value="#resPage.currentPage"/></span>/<s:property value="#resPage.totalPage"/></td>
    <td width="11%">每页<s:property value="#resPage.pageSize"/>条记录</td>
    <td width="13%">分页：<a class="num" href="#">1</a>,<a class="num" href="#">2</a>,<a class="num" href="#">3</a>,<a class="num" href="#">4</a>,</td>
    <td width="4%"><a href="javascript:goPage(<s:property value="1" />)"/>首页</a></td>
    <td width="6%"><a href="javascript:goPage(<s:property value="#resPage.prePage" />)"/>上一页</a></td>
    <td width="6%"><a href="javascript:goPage(<s:property value="#resPage.nextPage" />)"/>下一页</a></td>
    <td width="38%"><a href="javascript:goPage(<s:property value="#resPage.totalPage" />)"/>末页</a></td>
  </tr>
</table>
</div>
</div><!--"content-right"end-->
</div><!--"content"end-->
</body>
</html>
